package com.ds.api.model;

import java.io.Serializable;

public class UserAllskill implements Serializable {
    private Integer skid;

    private Integer fkUserBasecinfoUid;

    private Integer fkTypeSkillUid;

    private static final long serialVersionUID = 1L;

    public Integer getSkid() {
        return skid;
    }

    public void setSkid(Integer skid) {
        this.skid = skid;
    }

    public Integer getFkUserBasecinfoUid() {
        return fkUserBasecinfoUid;
    }

    public void setFkUserBasecinfoUid(Integer fkUserBasecinfoUid) {
        this.fkUserBasecinfoUid = fkUserBasecinfoUid;
    }

    public Integer getFkTypeSkillUid() {
        return fkTypeSkillUid;
    }

    public void setFkTypeSkillUid(Integer fkTypeSkillUid) {
        this.fkTypeSkillUid = fkTypeSkillUid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserAllskill other = (UserAllskill) that;
        return (this.getSkid() == null ? other.getSkid() == null : this.getSkid().equals(other.getSkid()))
            && (this.getFkUserBasecinfoUid() == null ? other.getFkUserBasecinfoUid() == null : this.getFkUserBasecinfoUid().equals(other.getFkUserBasecinfoUid()))
            && (this.getFkTypeSkillUid() == null ? other.getFkTypeSkillUid() == null : this.getFkTypeSkillUid().equals(other.getFkTypeSkillUid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSkid() == null) ? 0 : getSkid().hashCode());
        result = prime * result + ((getFkUserBasecinfoUid() == null) ? 0 : getFkUserBasecinfoUid().hashCode());
        result = prime * result + ((getFkTypeSkillUid() == null) ? 0 : getFkTypeSkillUid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", skid=").append(skid);
        sb.append(", fkUserBasecinfoUid=").append(fkUserBasecinfoUid);
        sb.append(", fkTypeSkillUid=").append(fkTypeSkillUid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}